"*Regexp matching left hand side of IPv6 addresses.
Derived from `tramp-prefix-ipv6-format'.")
-;; The following regexp is a bit sloppy. But it shall serve our purposes.
+;; The following regexp is a bit sloppy. But it shall serve our
+;; purposes. It covers also IPv4 mapped IPv6 addresses, like in
+;; "::ffff:192.168.0.1".
(defconst tramp-ipv6-regexp
- "\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9]+"
+ "\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+"
"*Regexp matching IPv6 addresses.")
(defconst tramp-postfix-ipv6-format